//前端请求所有数据的接口
var baseUrl = "http://yaochiwan2.bluej.cn";

var carousel = "/carousel/list",//轮播图
	adverList = "/adver/list", //滚动广告
	vrList = "/vr/list", //VR
	indexTips = "/index_tips/list", //首页攻略图
	newsList ="/news/list", //文章
	newsDelete = "/news/delete",//删除文章
	sortNews = "/news/sort", //文章排序
	newsChange = "/news/find", //文章修改
	newsAdd = "/news/add", //文章添加
	newsUpdate = "/news/update", //文章修改更新

	newsCarousel = "/news_carousel/list", //文章banner
	tipsList = "/tips/list", //攻略
	dynamicList = "/dynamic/list", //动态
	dynamicDelete = "/dynamic/delete",//删除动态
	dynamicSort = "/dynamic/sort",   //动态排序
	dynamicAdd = "/dynamic/add",    //动态添加
	dynamicChange = "/dynamic/find",    //动态修改
	dynamicUpdate = "/dynamic/update",    //动态修改更新

	jobsList = "/jobs/list", //招聘
	jobsDelete = "/jobs/delete", //招聘删除
	jobsSort = "/jobs/sort", //招聘排序
	jobsChange = "/jobs/find", //招聘修改
	jobsAdd = "/jobs/add",   //招聘添加
	jobsUpdate = "/jobs/update", //招聘修改更新

	scenicList = "/reser/scenic/list", //预约景点景区
	hotelList = "/reser/hotel/list", //预约酒店住宿
	foodList = "/reser/food/list", //预约美食餐饮
	addViews = "/news/addViews",//文章详情
	hotelViews = "/reser/hotel/find";//酒店详情

//后台管理请求数据的接口
var upImg = "/upload/image",//上传图片
	login = "/user/login",//登录
	addCarousel = "/carousel/add",//增加首页轮播图
	addAdver = "/adver/add",
	addStrategyTime = "/tips/add_time",//增加攻略景点时间组
	addStrategy = "/tips/add", //增加攻略景点
	findStrategy = "/tips/find",//修改攻略景点
	findStrategyTime = "/tips/find_time", //修改攻略景点时间组
	sortStrategy = "/tips/sort", //攻略景点排序
	delStrategy = "/tips/delete", //删除攻略景点
	delStrategyTime = "/tips/del_time", //删除攻略时间组
	addStrategyTime = "/tips/add_time", //增加攻略时间组
	updateStrategyTime = "/tips/time_update", //更新攻略时间组
	updateStrategy = "/tips/detail_update", //更新攻略详情
	addAppointment1 = "/reser/scenic/add", //增加景点预约
	sortAppointment1 = "/reser/scenic/sort", //景点预约排序
	delAppointment1 = "/reser/scenic/delete", //删除景点预约
	editAppointment1 = "/reser/scenic/find", //修改景点预约
	updateAppointment1 = "/reser/scenic/update", //确认修改景点预约
	addAppointment2 = "/reser/hotel/add", //增加酒店预约
	sortAppointment2 = "/reser/hotel/sort", //酒店预约排序
	delAppointment2 = "/reser/hotel/delete", //删除酒店预约
	editAppointment2 = "/reser/hotel/find", //修改酒店预约
	updateAppointment2 = "/reser/hotel/update",//确认修改酒店预约
	addAppointment3 = "/reser/food/add", //增加美食预约
	sortAppointment3 = "/reser/food/sort", //美食预约排序
	delAppointment3 = "/reser/food/delete", //删除美食预约
	editAppointment3 = "/reser/food/find", //修改美食预约
	updateAppointment3 = "/reser/food/update", //确认修改美食预约
	
	deleteCarousel = "/carousel/delete",//删除首页轮播图
	sortCarousel = "/carousel/sort",//排序首页轮播图
	addAdver = "/adver/add",//增加首页广告
	deleteAdver = "/adver/delete",//删除首页广告
	sortAdver = "/adver/sort",//排序首页广告
	addHomeTips = "/index_tips/add",//增加首页攻略
	deleteHomeTips = "/index_tips/delete";//删除首页攻略
	
module.exports = {
	baseUrl:baseUrl,
	
	//请求所有数据接口
	carousel:carousel,
	vrList:vrList,
	indexTips:indexTips,
	adverList:adverList,
	newsList:newsList,
	newsCarousel:newsCarousel,
	tipsList:tipsList,
	dynamicList:dynamicList,
	jobsList:jobsList,
	scenicList:scenicList,
	hotelList:hotelList,
	foodList:foodList,
	addViews:addViews,
	hotelViews:hotelViews,
	
	//提交数据接口
	upImg:upImg,
	login:login,
	addCarousel:addCarousel,
	addAdver:addAdver,
	addStrategy:addStrategy,//增加攻略景点
	updateStrategy: updateStrategy,//更新攻略
	findStrategy:findStrategy,//修改攻略景点
	findStrategyTime:findStrategyTime, //修改攻略景点时间组
	sortStrategy:sortStrategy, //攻略景点排序
	delStrategy:delStrategy, //删除攻略景点
	addAppointment1:addAppointment1,  //增加景点预约
	sortAppointment1:sortAppointment1, //景点预约排序
	delAppointment1:delAppointment1, //删除景点预约
	editAppointment1:editAppointment1, //修改景点预约
	updateAppointment1:updateAppointment1, //确认修改景点预约
	addAppointment2:addAppointment2,  //增加酒店预约
	sortAppointment2:sortAppointment2, //预约酒店排序
	delAppointment2:delAppointment2, //删除酒店预约
	editAppointment2:editAppointment2, //修改酒店预约
	updateAppointment2:updateAppointment2, //确认修改酒店预约
	addAppointment3:addAppointment3,  //增加美食预约
	sortAppointment3:sortAppointment3, //预约美食排序
	delAppointment3:delAppointment3, //删除美食预约
	editAppointment3:editAppointment3, //修改美食预约
	updateAppointment3:updateAppointment3, //确认修改美食预约
	deleteAdver:deleteAdver,
	sortAdver:sortAdver,
	// 删除接口
	dynamicDelete:dynamicDelete, // 删除动态接口
	dynamicSort:dynamicSort,  //动态排序
	dynamicAdd:dynamicAdd,    //动态添加
	dynamicChange:dynamicChange,    //动态修改
	dynamicUpdate:dynamicUpdate,    //动态修改更新
	newsDelete:newsDelete,   // 删除文章接口
	sortNews:sortNews,       //排序文章
	newsAdd:newsAdd,     	//文章添加
	newsChange:newsChange,   //文章修改
	newsUpdate:newsUpdate,    //文章修改更新
	jobsDelete:jobsDelete, //招聘删除
	jobsSort:jobsSort,      //招聘排序
	jobsChange:jobsChange,  //招聘修改
	jobsAdd:jobsAdd,        //招聘添加
	jobsUpdate:jobsUpdate, //招聘修改更新

	deleteCarousel:deleteCarousel,
	addHomeTips:addHomeTips,

	deleteHomeTips:deleteHomeTips,
	delStrategyTime:delStrategyTime, //删除攻略时间组
	addStrategyTime:addStrategyTime, //增加攻略时间组
	updateStrategyTime:addStrategyTime //更新攻略时间组

}


